#ifndef SERVER_H
#define SERVER_H

#include "../common/common.h"
#include <sqlite3.h>
#include <pthread.h>

typedef struct {
	    int client_socket;
	        char username[MAX_USERNAME_LEN];
		    unsigned char session_key[16];
} ClientInfo;

// 函数声明
 void *handle_client(void *arg);
 int init_server_socket();
 void log_event(sqlite3 *db, const char *event_type, const char *username, const char *details);

 #endif // SERVER_H
